ones — Matrix of ones
ones
creates a matrix with each element set to 1. The
arguments specify the dimensions of the matrix to be created. If the
argument is a matrix, the matrix must have two elements, with the
first argument specifying the number of rows, and the second argument
specifying the number of columns. This is the same format as the
output of the size
function. If the arguments are two scalars,
then the first argument is the number of rows, and the second argument
is the number of columns.
Subsections